package com.zhangdi.zddemo.esclient.repository;

import com.zhangdi.zddemo.esclient.MSearchRequest;
import com.zhangdi.zddemo.esclient.page.Page;
import com.zhangdi.zddemo.esclient.page.Pageable;

import javax.annotation.Resource;
import java.util.List;

@Resource
public interface ClientApi<C extends MSearchRequest, T> {
    List<T> search(MSearchRequest c);
    List<T> search(List<MSearchRequest> pageable, Class<T> tClass);
    Page<T> search(Pageable<List<MSearchRequest>> pageable, Class<T> tClass);
}
